package com.ruoyi.sj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sj.mapper.WqEweiShopOrderMapper;
import com.ruoyi.sj.domain.WqEweiShopOrder;
import com.ruoyi.sj.service.IWqEweiShopOrderService;
import com.ruoyi.common.support.Convert;

/**
 * 订单 服务层实现
 * 
 * @author tyc@yanyu.com
 * @date 2018-12-18
 */
@Service
public class WqEweiShopOrderServiceImpl implements IWqEweiShopOrderService 
{
	@Autowired
	private WqEweiShopOrderMapper wqEweiShopOrderMapper;

	/**
     * 查询订单信息
     * 
     * @param id 订单ID
     * @return 订单信息
     */
    @Override
	public WqEweiShopOrder selectWqEweiShopOrderById(Integer id)
	{
	    return wqEweiShopOrderMapper.selectWqEweiShopOrderById(id);
	}
	
	/**
     * 查询订单列表
     * 
     * @param wqEweiShopOrder 订单信息
     * @return 订单集合
     */
	@Override
	public List<WqEweiShopOrder> selectWqEweiShopOrderList(WqEweiShopOrder wqEweiShopOrder)
	{
	    return wqEweiShopOrderMapper.selectWqEweiShopOrderList(wqEweiShopOrder);
	}
	
    /**
     * 新增订单
     * 
     * @param wqEweiShopOrder 订单信息
     * @return 结果
     */
	@Override
	public int insertWqEweiShopOrder(WqEweiShopOrder wqEweiShopOrder)
	{
	    return wqEweiShopOrderMapper.insertWqEweiShopOrder(wqEweiShopOrder);
	}
	
	/**
     * 修改订单
     * 
     * @param wqEweiShopOrder 订单信息
     * @return 结果
     */
	@Override
	public int updateWqEweiShopOrder(WqEweiShopOrder wqEweiShopOrder)
	{
	    return wqEweiShopOrderMapper.updateWqEweiShopOrder(wqEweiShopOrder);
	}

	/**
     * 删除订单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteWqEweiShopOrderByIds(String ids)
	{
		return wqEweiShopOrderMapper.deleteWqEweiShopOrderByIds(Convert.toStrArray(ids));
	}
	
}
